package com.ef.service.impl;

import com.ef.dao.PowerDao;
import com.ef.domain.Power;
import com.ef.service.PowerService;
import com.ef.util.CustomExample;
import com.ef.util.PaginationSupport;

public class PowerServiceImpl extends BaseServiceImpl implements PowerService {

	private PowerDao powerDao;

	public void delete(Power entity) {

		powerDao.delete(entity);
	}

	public PaginationSupport<Power> findByExample(CustomExample<Power> example,
			int startIndex, int pageSize) {

		return powerDao.findPageByExample(example, startIndex, pageSize);
	}

	public Power findById(Long id) {

		return powerDao.findById(id);
	}

	public void saveOrUpdate(Power entity) {

		powerDao.saveOrUpdate(entity);

	}

	public PowerDao getPowerDao() {
		return powerDao;
	}

	public void setPowerDao(PowerDao powerDao) {
		this.powerDao = powerDao;
	}

}
